Skip to content

dot.c early bail fix - #3928

Closed
sergei-lewis wants to merge 1 commit into
OpenMathLib:risc-vfrom
sergei-lewis:riscv-scalar-dot-fix
Closed

sergei-lewis wants to merge 1 commit into
OpenMathLib:risc-vfrom
sergei-lewis:riscv-scalar-dot-fix

Conversation

@sergei-lewis

Copy link
Copy Markdown
Contributor

The dot kernel should return 0 for N=0. An existing early bail checks for N<0 and returns 0 in this case. Adjust this to N<1 to simplify maintenance: with this change we don't have to reason through subsequent code to confirm it handles that corner case correctly, and future platform ports have a slightly more pleasant baseline to begin from.

@martin-frbg

Copy link
Copy Markdown
Collaborator

ah, sorry, that would be against the main develop branch (not sure if/how I could redirect the merge there ?)

@sergei-lewis

Copy link
Copy Markdown
Contributor Author

Gotcha, I'll close this and make a new one. One sec

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants